package com.stone.oauth.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * <p>Created with IntelliJ IDEA. </p>
 * <p>User: Stony </p>
 * <p>Date: 2016/7/7 </p>
 * <p>Time: 13:03 </p>
 * <p>Version: 1.0 </p>
 */
@Controller
@RequestMapping("")
public class IndexController {

    @RequestMapping(value = {"/index", "/"})
    public String index(Model model) {
        return "index";
    }

    @RequestMapping(value = "/notFound")
    public String notFound() {
        return "error/404";
    }

    @RequestMapping(value = "/error")
    public String error() {
        return "error/500";
    }


}
